package lanqiao.dontaiguihua.dfs;

import java.util.Scanner;

//作物杂交
public class Lan506 {
    static Scanner sc=new Scanner(System.in);
    static int n=sc.nextInt();
    static int m=sc.nextInt();
    static int K=sc.nextInt();
    static int T=sc.nextInt();
    static int[] t=new int[n];
    static int[] k=new int[m];
    public static void main(String[] args) {
        for(int i=0;i<n;i++) {
            t[i] = sc.nextInt();
        }
        for(int i=0;i<m;i++){
            k[i]=sc.nextInt();
        }
        for(int )

    }
}
//需改